using System.Collections;
using Core.Base.Module;
using Core.Extension;
using Core.Mgr;
using Core.Mgr.Localize;
using Logic.Global;
using Model;
using UnityEngine.AddressableAssets;


/// <summary>
/// 程序的起点
/// </summary>
public class GameRoot : SingletonMono<GameRoot>
{
    IEnumerator Start()
    {
        yield return ConfigMgr.Ins.OnInit();
        yield return LocalizedMgr.Ins.OnInit();
        yield return Addressables.InitializeAsync();
        ModuleMgr.Ins.LoadModule<MainModule>();
        DontDestroyOnLoad(this);
    }
}